window.onload = function () {
    let loginInfo = getQuery("loginInfo");
    if (loginInfo == "noland"){
        $("errorDiv").innerHTML = "请先完成登录";
    }
}
/**
 * 登录判断
 */
function land() {
    axios.get("/user/login",{
        params:{
            userName:$("userName").value,
            pwd:$("pwd").value,
        }
    }).then(resp=>{
        if(resp.data == "ok"){
            location.href = "/index.html";
        }else if (resp.data == "no"){
            $("errorDiv").innerHTML = "账号或密码错误";
        }
    })
}
